/**
 * Copyright 2012 SVC Delivery Limited
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package sc.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;

public class Login implements EntryPoint
{

	@Override
	public void onModuleLoad()
	{
		// final FormPanel formPanel = new FormPanel( "_self" );
		// VerticalPanel vpanel = new VerticalPanel();
		// HorizontalPanel hpanel = new HorizontalPanel();
		// TextBox userName;
		// TextBox password;
		//
		// formPanel.setAction( "j_security_check" );
		// formPanel.setMethod( FormPanel.METHOD_POST );
		// hpanel.add( new Label( "User name:" ) );
		// hpanel.add( userName = new TextBox() );
		// userName.setName( "j_username" );
		// vpanel.add( hpanel );
		//
		// hpanel = new HorizontalPanel();
		// hpanel.add( new Label( "Password:" ) );
		// hpanel.add( password = new PasswordTextBox() );
		// password.setName( "j_password" );
		// vpanel.add( hpanel );
		//
		// Button login = new SubmitButton( "Login" );
		// vpanel.add( login );
		//
		// formPanel.add( vpanel );
		LoginWidget login = new LoginWidget( null );
		RootPanel.get().add( login );
	}

}
